var locking=0;

function translate()
{
var b=window.prompt("kata yg akan diterjemah:")

var b=b.replace("aku","aku")
var b=b.replace("makan","mangan")
var b=b.replace("nasi","sego")
var b=b.replace("merah","abang") 
var b=b.replace("berat","abot") 
var b=b.replace("menanak nasi","adang") 
var b=b.replace("dingin","adhem") 
var b=b.replace("adik","adhi") 
var b=b.replace("berdiri","adeg") 
var b=b.replace("jauh","adoh") 
var b=b.replace("jual","adol") 
var b=b.replace("sabung","adu") 
var b=b.replace("adu","adu") 
var b=b.replace("mengadu","adu") 
var b=b.replace("mandi","adus") 
var b=b.replace("cepat-cepat","age-age") 
var b=b.replace("jangan","aja") 
var b=b.replace("piring","ajang") 
var b=b.replace("piring","ajang") 
var b=b.replace("harga","aji")  
var b=b.replace("banyak","akeh") 
var b=b.replace("ampun","aksama") 
var b=b.replace("maaf","aksama") 
var b=b.replace("jelek","ala") 
var b=b.replace("buruk","ala") 
var b=b.replace("gangguan","alangan") 
var b=b.replace("halangan","alangan") 
var b=b.replace("hutan","alas") 
var b=b.replace("cincin","ali-ali") 
var b=b.replace("sebab","amarga") 
var b=b.replace("karena","amarga") 
var b=b.replace("luas","amba") 
var b=b.replace("lebar","amba") 
var b=b.replace("bau","ambu") 
var b=b.replace("cium","ambung") 
var b=b.replace("permisi","amit") 
var b=b.replace("singgah","ampir") 
var b=b.replace("ada","ana") 
var b=b.replace("asalkan","angger") 
var b=b.replace("dengan syarat","angger") 
var b=b.replace("pakai","anggo") 
var b=b.replace("ikut","anut") 
var b=b.replace("dim","dip")

document.getElementById('output').innerHTML=b
}



function inputlock()
{
document.getElementById('main').innerHTML='<input type="password" id="pin" />'
}




function kbba()
{
var n=window.prompt("Password");
var m=document.getElementById('name_verify').value;
var p="indonesian";
var mr="memberofmemberthatisthememberofmember"
if (n==p) {
  if (m==mr) {
    document.getElementById('lkbbb').innerHTML='<input type="button" onClick="Javascript: kbbb();" value="Unlock 2" />';
  } else {
  window.alert("Salah")
  }
}
}

function kbbb()
{
var n=window.prompt("Password");
var p="language";
if (n==p) {
  document.getElementById('lkbbc').innerHTML='<input type="button" onClick="Javascript: kbbc();" value="Unlock 3" />';
} else {
  window.alert("Salah")
}
}

function kbbc()
{
var n=window.prompt("Password");
var p="javanese";
if (n==p) {
  document.getElementById('lkbbd').innerHTML='<input type="button" onClick="Javascript: kbbd();" value="Unlock 4" /> <input type="button" onClick="Javascript: inputlock();" />';
} else {
  window.alert("Salah")
}
}

function kbbd()
{
window.prompt("Password")
var n=document.getElementById('pin').value;
var p="language";
if (n==p) {
  document.getElementById('mbutton').innerHTML='<input type="button" onClick="Javascript: mainbutton();" value="Main button" />';

  document.getElementById('pin').value="12345678";

} else {
  window.alert("Salah")
}
}

function mainbutton()
{
var n=document.getElementById('pin').value;
var p="exeptwhotypethis"
if (n==p) {
  window.alert("Benar")
  window.location="Javascript: unlock();"
}
}

function sbutton()
{
document.getElementById('main').innerHTML='<input type="text" id="pin" />';
}

function unlock()
{
document.getElementById('tbutton').innerHTML='<input type="button" onClick="Javascirpt: translate();" value="Mulai terjemahkan" />'

document.getElementById('locking').innerHTML=" ";
}